package cn.dai.servlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author ArkD42
 * @file JavaWeb
 * @create 2020 - 06 - 09 - 15:21
 */

/**
 *  首先要继承BaseServlet
 *  注意我们要访问的位置： http://localhost:8080/projectName/test?wanna=hello
 */
@WebServlet("/test")
public class TestServlet extends BaseServlet{

    /**
     * 调用名字即可
     * @param request
     * @param response
     */
    public void hello(HttpServletRequest request, HttpServletResponse response){
        System.out.println("测试成功！！！！");
    }

}
